using SqlSugar;

namespace LabSecurityApi.Models;

[SugarTable("Users")]
public class User
{
    [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
    public int Id { get; set; }

    [SugarColumn(Length = 50)]
    public string Username { get; set; }

    [SugarColumn(Length = 100)]
    public string Password { get; set; }

    [SugarColumn(Length = 50)]
    public string Email { get; set; }

    [SugarColumn(IsNullable = true)]
    public DateTime? CreateTime { get; set; }

    [SugarColumn(IsNullable = true)]
    public DateTime? UpdateTime { get; set; }
} 